from graphics import *

def main():
    win = GraphWin()

    while True:
        mouse = win.getMouse()
        print "X:", mouse.getX()
        print "Y:", mouse.getY()

main()
